<?php
defined ( 'BASEPATH' ) or exit ( 'No direct script access allowed' );
class Shoppingcart_model extends CI_Model {
	public function __construct() {
		parent::__construct ();
	}
	/*
	 * 清空购物车
	 */
	public function clear(){
		$this->db->truncate('t_shoppingcart');
		return $this->db->affected_rows()>0;
	}
}